﻿<ig:XamDialogWindow 
    x:Class="Sidvall.UI.Wpf.Dialogs.XamSecurityDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:Sidvall.UI.Wpf.Controls;assembly=Sidvall.UI.Wpf"
    xmlns:ig="http://schemas.infragistics.com/xaml" 
    FocusManager.IsFocusScope="True"
    Controls:AccessKeyScoper.IsAccessKeyScope="True"
    Height="270" Width="400" IsResizable="True" IsModal="True" HeaderIconVisibility="Collapsed" CloseButtonVisibility="Visible" StartupPosition="Center" 
    WindowStateChanged="XamSecurityDialog_WindowStateChanged">

    <Grid>
        <ig:XamBusyIndicator IsBusy="{Binding ViewModel.IsBusy, ElementName=SecurityControl, Mode=OneWay}">
            <Controls:SecurityControl x:Name="SecurityControl" CloseSelected="SecurityControl_CloseSelected" ViewTypeChanged="SecurityControl_ViewTypeChanged" />
        </ig:XamBusyIndicator>
    </Grid>
</ig:XamDialogWindow>
